import java.util.Scanner;

public class Login {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        // 设置默认账号和密码
        String defaultUsername = "jsp";
        String defaultPassword = "123456";

        while (true) {
            System.out.println("请输入登录名称：");
            String username = scanner.nextLine();
            System.out.println("请输入登录密码：");
            String password = scanner.nextLine();

            if (defaultUsername.equals(username) && defaultPassword.equals(password)) {
                System.out.println("恭喜您，成功进入系统！");
                break;
            } else {
                System.out.println("登录名或密码错误，请您确认！");
            }
        }

        scanner.close();
    }
}
